.class Lcom/netease/newsreader/activity/DetailPage$30;
.super Ljava/lang/Thread;
.source "DetailPage.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/DetailPage;->getDocIDListThread(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZII)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/DetailPage;

.field private final synthetic val$columnid:Ljava/lang/String;

.field private final synthetic val$key:Ljava/lang/String;

.field private final synthetic val$len:Ljava/lang/String;

.field private final synthetic val$page:Z

.field private final synthetic val$pageType:I

.field private final synthetic val$startNum:I

.field private final synthetic val$type:I

.field private final synthetic val$url:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/DetailPage;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZII)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/DetailPage$30;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    iput-object p2, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$columnid:Ljava/lang/String;

    iput-object p3, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$url:Ljava/lang/String;

    iput-object p4, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$key:Ljava/lang/String;

    iput-object p5, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$len:Ljava/lang/String;

    iput p6, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$type:I

    iput-boolean p7, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$page:Z

    iput p8, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$startNum:I

    iput p9, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$pageType:I

    .line 1505
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 8

    .prologue
    const/4 v7, 0x1

    .line 1509
    const/4 v0, 0x0

    .line 1510
    .local v0, list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/lang/String;>;"
    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$columnid:Ljava/lang/String;

    if-eqz v2, :cond_2

    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$columnid:Ljava/lang/String;

    const-string v3, "s"

    invoke-virtual {v2, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$columnid:Ljava/lang/String;

    const-string v3, "S"

    invoke-virtual {v2, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 1511
    :cond_0
    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$30;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    iget-object v2, v2, Lcom/netease/newsreader/activity/DetailPage;->app:Lcom/netease/newsreader/activity/MyApplication;

    invoke-virtual {v2}, Lcom/netease/newsreader/activity/MyApplication;->getSQLiteDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$columnid:Ljava/lang/String;

    invoke-static {v2, v3}, Lcom/netease/newsreader/db/DBUtils;->getSpecialArticleIds(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    .line 1516
    :goto_0
    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$30;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v2}, Lcom/netease/newsreader/activity/DetailPage;->access$20(Lcom/netease/newsreader/activity/DetailPage;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->clear()V

    .line 1518
    if-eqz v0, :cond_4

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lez v2, :cond_4

    .line 1519
    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$30;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v2, v0}, Lcom/netease/newsreader/activity/DetailPage;->access$134(Lcom/netease/newsreader/activity/DetailPage;Ljava/util/ArrayList;)V

    .line 1520
    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$30;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    iget-object v2, v2, Lcom/netease/newsreader/activity/DetailPage;->app:Lcom/netease/newsreader/activity/MyApplication;

    iget v3, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$type:I

    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$key:Ljava/lang/String;

    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$30;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPage;->access$20(Lcom/netease/newsreader/activity/DetailPage;)Ljava/util/ArrayList;

    move-result-object v5

    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$columnid:Ljava/lang/String;

    invoke-virtual {v2, v3, v4, v5, v6}, Lcom/netease/newsreader/activity/MyApplication;->setDocIdListMap(ILjava/lang/String;Ljava/lang/Object;Ljava/lang/String;)V

    .line 1522
    iget-boolean v2, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$page:Z

    if-eqz v2, :cond_1

    .line 1523
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    .line 1524
    .local v1, msg:Landroid/os/Message;
    iget v2, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$startNum:I

    iput v2, v1, Landroid/os/Message;->arg1:I

    .line 1525
    iget v2, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$pageType:I

    if-ne v2, v7, :cond_3

    .line 1526
    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$30;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v2}, Lcom/netease/newsreader/activity/DetailPage;->access$20(Lcom/netease/newsreader/activity/DetailPage;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    iput v2, v1, Landroid/os/Message;->arg2:I

    .line 1527
    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    iput-object v2, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1532
    :goto_1
    const/4 v2, 0x4

    iput v2, v1, Landroid/os/Message;->what:I

    .line 1533
    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$30;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v2}, Lcom/netease/newsreader/activity/DetailPage;->access$17(Lcom/netease/newsreader/activity/DetailPage;)Landroid/os/Handler;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1538
    .end local v1           #msg:Landroid/os/Message;
    :cond_1
    :goto_2
    return-void

    .line 1513
    :cond_2
    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$url:Ljava/lang/String;

    iget-object v3, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$columnid:Ljava/lang/String;

    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$key:Ljava/lang/String;

    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPage$30;->val$len:Ljava/lang/String;

    iget-object v6, p0, Lcom/netease/newsreader/activity/DetailPage$30;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v2, v3, v4, v5, v6}, Lcom/netease/newsreader/rss/GetColumnsInfo;->getDocIdsOfArticleList(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;)Ljava/util/ArrayList;

    move-result-object v0

    goto :goto_0

    .line 1529
    .restart local v1       #msg:Landroid/os/Message;
    :cond_3
    const/4 v2, 0x0

    iput v2, v1, Landroid/os/Message;->arg2:I

    .line 1530
    const/4 v2, 0x2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    iput-object v2, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    goto :goto_1

    .line 1536
    .end local v1           #msg:Landroid/os/Message;
    :cond_4
    iget-object v2, p0, Lcom/netease/newsreader/activity/DetailPage$30;->this$0:Lcom/netease/newsreader/activity/DetailPage;

    invoke-static {v2}, Lcom/netease/newsreader/activity/DetailPage;->access$17(Lcom/netease/newsreader/activity/DetailPage;)Landroid/os/Handler;

    move-result-object v2

    const/16 v3, 0x9

    invoke-virtual {v2, v3}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_2
.end method
